#include <stdio.h>

int main() {
	int a, b, c, l, y;
	scanf("%d", &y);
	a = y % 4, b = y % 100, c = y % 400;
	if (a == 0)
		if (b == 0)
			if (c == 0)
				l = 1;
			else
				l = 0;
		else
			l = 1;
	else
		l = 0;
	if (l == 1)
		printf ("%d is a leap year", y);
	else
		printf ("%d is not a leap year", y);
}